import React from 'react'
import { Link } from 'react-router-dom'
import RouterView from '../router/route.view'
class Index extends React.Component {
    render() {
        console.log(444, this.props)
      return <div>
        <div>
          <Link to="/index/focus">关注</Link>
          <Link to="/index/recommend">推荐</Link>
          <Link to="/index/hot">热榜</Link>
        </div>
        <RouterView routes={this.props.routes}></RouterView>
        {/* <Switch>
          <Route path="/index/focus" component={Focus}></Route>
          <Route path="/index/recommend" component={Recommend}></Route>
          <Route path="/index/hot" component={Hot}></Route>
          <Redirect from="/index" to="/index/focus"></Redirect>
        </Switch> */}
      </div>
    }
  }
  export default Index